//
//  UILabel+YMSUILable.m
//  字体设置
//
//  Created by 杨茂盛 on 2016/11/22.
//  Copyright © 2016年 itcast. All rights reserved.
//

#import "UILabel+YMSUILable.h"

@implementation UILabel (YMSUILable)

-(void)setFontWithText:(UILabel*)lable text:(NSString*)text color:(UIColor*)color fontSize:(CGFloat)fontSize
{
    lable.text = text;
    lable.textColor = color;
    //  label.font = [UIFont fontWithName:@"AvenirNext-UltraLight" size:35];
    //lable.font = [UIFont fontWithName:@"HYQiHei-EZJ" size:35];
    lable.font = [UIFont fontWithName:@"Untitled" size:fontSize];
    lable.numberOfLines = 0;
    
//    NSArray* familys = [UIFont familyNames];
//    
//    for (int i = 0; i<[familys count]; i++) {
//        
//        NSString* family = familys[i];
//        
//        NSLog(@"Fontfamily:%@=====",family);
//        
//        NSArray* fonts = [UIFont fontNamesForFamilyName:family];
//        
//        for (int j = 0; j<[fonts count]; j++) {
//            
//            NSLog(@"FontName:%@",[fonts objectAtIndex:j]);
//            
//        }
//    }

}

@end
